package com.tedu.ds.sessionAndMessage.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class MessageVO {

    @ApiModelProperty(value = "消息id", example = "1")
    private Long id;

    @ApiModelProperty(value = "对话id", example = "1", required = true)
    private Integer sessionId;

    @ApiModelProperty(value = "客户id", example = "1")
    private Long custId;

    @ApiModelProperty(value = "客户名字", example = "1")
    private String custName;

    @ApiModelProperty(value = "客服id", example = "1")
    private Long csId;

    @ApiModelProperty(value = "客服名字", example = "1")
    private String csName;

    @ApiModelProperty(value = "聊天消息", example = "您好，有什么可以帮助您的？", required = true)
    private String message;

    @ApiModelProperty(value = "记录聊天发送的时间", example = "2023-10-24T20:00:00")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "分辨发出对象，1: 'c对u发出的数据'", example = "1", required = true)
    private String status;
}